package com.baicaoyuan.web.request.br;

import com.baicaoyuan.web.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.util.List;

@Data
@ApiModel(value = "com.baicaoyuan.web.request.br.BAddLotteryProjectRequest", description = "设置抽奖信息(token)")
public class BAddLotteryProjectRequest extends BaseRequest {

    private Long id;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    /**
     * 抽一次需要扣除积分
     */
    @ApiModelProperty(value = "抽一次需要扣除积分", required = true)
    private Integer thresholdScore;

    @ApiModelProperty(value = "奖项明细", required = true)
    private List<LotteryProjectItem> items;

    @Data
    public static class LotteryProjectItem {

        /**
         * 奖项代号
         */
        @ApiModelProperty(value = "奖项代号", required = true)

        private String code;

        /**
         * 项目名称
         */
        @ApiModelProperty(value = "奖项代号", required = true)
        private String content;

        /**
         * 几率
         */
        @ApiModelProperty(value = "几率", required = true)
        private Integer v;

        /**
         * 指定图片
         */
        @ApiModelProperty(value = "指定图片")
        private String picture;
    }
}
